package cn.edu.zafu.bigdata.x.zhouyuyan.work6;

import java.util.List;

public class Test {
    public static void main(String[] args) {
        Util<Integer> util1 = new Util<>();
        Util<String> util2 = new Util<>();
        List<Integer> intlist = List.of(1,3,5,7,9);
        List<String> strList = List.of("apple","banana","cherry");
        System.out.println("Max integer:" +util1.findMax(intlist));
        System.out.println("Max String:"+util2.findMax(strList));
    }
}
